// 商品展示
import axios from '@/utils/request'

export const getgoodsList = (params) => {
    return axios({
        url: '/api/getgoods',
        params
    })
}


// 根据id获取商品详情
export const getgoodsDetail = (id) => {
    return axios({
        url: `/api/goods/getdesc/${id}`
    })
}

// 根据id获取轮播图
export const getcarouselById = (id) => {
    return axios({
        url: `/api/getthumimages/${id}`
    })
}

// 根据id获取商品信息
export const getgoodsInfoById = (id) => {
    return axios({
        url: `/api/goods/getinfo/${id}`
    })
}